<?php
/**
 * Author:   tangxiaowen
 * Email:    846506584@qq.com
 * Date:     2019/4/8 0008
 * Describe: 系统充值验证类
 */

namespace app\admin\validate;

use think\Validate;

class Charge extends Validate
{
    protected $rule = [
        'Money'      => 'require|number',
        'PayPic'      => 'require',
    ];

    protected $message = [
        'Money'      => ['require' => '请输入充值金额','number' => '充值金额类型错误'],
        'PayPic'      => ['require' => '请上传支付凭证'],
    ];

    protected $scene = [
        'charge'     => ['Money','PayPic'],
    ];

}